﻿using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;

namespace Devonline.Identity.Admin.Controllers
{
    /// <summary>
    /// 身份管理
    /// </summary>    
    [Route("api/[controller]")]
    [SecurityHeaders]
    [ApiController]
    public class AccessRulesController : ControllerBase
    {
        private readonly AdminSetting _appSetting;
        private readonly IdentityDbContext _dbContext;
        private readonly UserManager<User> _userManager;
        private readonly SignInManager<User> _signInManager;
        private readonly ILogger<AccessRulesController> _logger;

        public AccessRulesController(
            AdminSetting appSetting,
            IdentityDbContext dbContext,
            UserManager<User> userManager,
            SignInManager<User> signInManager,
            ILogger<AccessRulesController> logger)
        {
            _appSetting = appSetting;
            _dbContext = dbContext;
            _userManager = userManager;
            _signInManager = signInManager;
            _logger = logger;
        }

    }
}
